package com.dxx.cloud.admin.module.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.util.Date;

/**
 * @author DUH
 */
@Data
public class BaseEntity {
    @TableId(value = "id",
            type = IdType.AUTO)
    private Long id;

    @TableField("is_deleted")
    @TableLogic(value = "0",delval = "1")
    private Integer isDeleted;


    @TableField("created")
    private Date created;


    @TableField("creator")
    private String creator;


    @TableField("updated")
    private Date updated;


    @TableField("updater")
    private String updater;
}
